package com.bidevalution.business.service;

import com.bidevalution.dao.entity.FileCompareResult;

import java.util.List;
import java.util.Map;

/**
 * Created by glodon on 2019-08-27.
 */
public interface FileCompareService {

    /**
     * 获取单位相似度对比结果
     * @param sectionId
     * @param enterpriseId
     * @param evalContentType
     * @param similar
     * @return
     * @throws Exception
     */
    List<FileCompareResult> getSimilarEnterprise(String sectionId,String enterpriseId, String evalContentType, String similar) throws Exception;

    /**
     * 获取需要对比的企业技术标文件
     * @return
     * @throws Exception
     */
    List<Map<String, String>> getCompareEnterprise(String sectionId, String methodId) throws Exception;

    /**
     * 获取需要对比的标段信息
     * @return
     * @throws Exception
     */
    List<Map<String, String>> getCompareSections() throws Exception;

    /**
     * 保存企业相似度对比结果
     * @param fileCompareResult
     * @return
     * @throws Exception
     */
    int saveSimilarEnterprise(FileCompareResult fileCompareResult)throws Exception;

    /**
     * 根据标段id和评审内容id获取技术标文件
     * @param sectionId
     * @param methodId
     * @param enterpriseId
     * @return
     * @throws Exception
     */
    String getTechnologyPdf(String sectionId, String methodId, String enterpriseId) throws Exception;

    /**
     * 根据标段id获取评审内容列表
     * @param sectionId
     * @return
     * @throws Exception
     */
    List<Map<String, String>> getEvalContentList(String sectionId) throws Exception;
}
